package
{
        import alternativa.engine3d.core.Mesh;
        import alternativa.engine3d.materials.FillMaterial;
        import alternativa.engine3d.materials.WireMaterial;
        import alternativa.engine3d.materials.TextureMaterial;
        import alternativa.engine3d.core.Object3D;
        import alternativa.types.Texture;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.geom.Point;
        
        import alternativa.engine3d.loaders.LoaderOBJ;
        import alternativa.engine3d.core.Surface;
        import alternativa.types.Point3D;
        
        public class Bureaux extends Mesh
        {
                
                protected var loader:LoaderOBJ;
                
                
                public function Bureaux()
                {
                        super(name);

                        //********Chaises*********
                        loader = new LoaderOBJ();
                        loader.smooth = false;
                        loader.load("assets/models/bureaux.obj");
                      	loader.addEventListener(Event.COMPLETE, onLoadingComplete);
                       
                }
                private function onLoadingComplete(e:Event):void {
				for (var o:* in loader.content.children) {

					var object:Object3D = o;
					addChild(object);
				}
				this.scaleZ=6;
				this.scaleY=2;
				this.scaleX=2;
				
			}


               

        }
}

